package io.renren.modules.res.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.res.dao.DirectiveDao;
import io.renren.modules.res.entity.DirectiveEntity;
import io.renren.modules.res.service.DirectiveService;


@Service("directiveService")
public class DirectiveServiceImpl extends ServiceImpl<DirectiveDao, DirectiveEntity> implements DirectiveService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DirectiveEntity> page = this.page(
                new Query<DirectiveEntity>().getPage(params),
                new QueryWrapper<DirectiveEntity>()
        );

        return new PageUtils(page);
    }

}
